package org.example.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("city")
public class City {

    @TableId(type= IdType.AUTO)
    private Integer id;

    private String cityName;

    private String content;

    private String thumbnail;

    private Integer viewCount;

    private Integer status;

    private Integer delFlag;

    private Date createTime;

    private Date updateTime;

    private String summary;

    private Integer createBy;

    private Integer updateBy;

    public City(Integer id, Integer viewCount) {

        this.id = id;

        this.viewCount = viewCount;
    }

}
